package testJdk.base.main;

import java.util.Arrays;
import java.util.stream.Collectors;

/**
 * @ClassName : learn_jdk.base.main.TestMain
 * @Description : 类描述
 * Created by cyd on 2021-04-20 22:19:20
 */
public class TestMain {
    public static void main(String[] args) {
        String[] strArr = {"hello", "world", "cyd"};
        TestMain02.main(strArr);
    }
}

class TestMain02 {
    public static void main(String[] args) {
        for (String arg : args) {
            System.out.println(arg);
        }
        // 逆序再输出
        Arrays.stream(args).sorted().collect(Collectors.toList()).forEach(System.out::println);
    }
}
